from django.conf.urls import url
from django.contrib import admin
from rest_framework.routers import DefaultRouter

from goods import views

urlpatterns = [
    url(r'^categories/(?P<pk>\d+)/skus/$', views.SKUListView.as_view()),
    url(r'^categories/(?P<pk>\d+)/$', views.GoodCategorieView.as_view()),
]
router = DefaultRouter()
router.register("skus/search", views.SKUSearchViewSet, base_name="skus_search")
urlpatterns += router.urls
